package com.bjsdzk.collector.utils;

import java.util.Calendar;
import java.util.Date;

public class MethodUtil {

	public static Date getDateByday(byte[] year,byte[] month,byte[] day) {
		Calendar occurTime = Calendar.getInstance();
		occurTime.set(Calendar.YEAR, 2000 + Utils.toInt(year, 0));
		occurTime.set(Calendar.MONTH, Utils.toInt(month, 0) - 1);
		occurTime.set(Calendar.DAY_OF_MONTH, Utils.toInt(day, 0));
		return occurTime.getTime();
	}
	
	public static String addStr(Object ... args) {
    	StringBuilder sb = new StringBuilder();
    	 for(Object temp:args) {
    		 sb.append(temp);
    	 }
		return sb.toString();
    }
	

}
